#ifndef RUNERR_H
#define RUNERR_H

#include <QWidget>
#include "ui_RunErr.h"

enum
{
    E_RUN_ERR_FLAG_NULL = 0,
    E_RUN_ERR_FLAG_again ,
    E_RUN_ERR_FLAG_ingore ,
    E_RUN_ERR_FLAG_stop ,
};

class RunErr : public QWidget
{
    Q_OBJECT
public:
    explicit RunErr(QWidget *parent = nullptr);
    void SetTitle(QString Str);
    void SetDetail(QString Str);
public slots:
    void onDealUserEvent(bool sta);
protected:
    void closeEvent(QCloseEvent *event) ;
signals:
    void SigEvent(quint8 Flag);//点击忽略
private:
    Ui::RunErr *_ui;
};

#endif // RUNERR_H
